import java.util.Arrays;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 东莞呵呵
 * Date:2022-05-05
 * Time:20:28
 */
public class TestDemo {

    public static void main(String[] args) throws CloneNotSupportedException {
        Student student[]=new Student[4];
        student[0]=new Student(18,"张三",88.1);
        student[1]=new Student(21,"李四",99.1);
        student[2]=new Student(19,"王五",55.5);
        ScoreComparator scoreComparator=new ScoreComparator();
        Arrays.sort(student,scoreComparator);
        Arrays.sort(student);
        student[3]=(Student) student[0].clone();


        System.out.println(Arrays.toString(student));
    }
}
